home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre3.z / postgre3 / src / lib / H / tmp / clib.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-27  |  1.6 KB  |  112 lines

  1. /*
  2.  * clib.h --
  3.  *    Standard C library definitions.
  4.  *
  5.  * Note:
  6.  *    This file is OPERATING SYSTEM dependent!!!
  7.  *
  8.  * Identification:
  9.  *    $Header: /private/postgres/src/lib/H/tmp/RCS/clib.h,v 1.3 1991/11/14 19:38:34 kemnitz Exp $
  10.  */
  11.  
  12. #ifndef    CLibIncluded    /* Include this file only once. */
  13. #define CLibIncluded    1
  14.  
  15. #ifdef NOTDEF
  16. #include "tmp/c.h"
  17.  
  18. /* ----------------
  19.  *    stuff from old libc.h file:
  20.  * ----------------
  21.  */
  22. extern char
  23.     *memccpy(),
  24.     *memchr(),
  25.     *memcpy(),
  26.     *memset();
  27. extern int memcmp();
  28.  
  29. /* ----------------
  30.  *    LibCCopyLength is only used within this file. -cim 6/12/90
  31.  * ----------------
  32.  */
  33. typedef int    LibCCopyLength;
  34.  
  35. /*
  36.  * memccpy --
  37.  *    memory(3)
  38.  */
  39. extern
  40. char *
  41. memccpy ARGS((
  42.     const String        toBuffer,
  43.     const String        fromBuffer,
  44.     const char        stopCharacter,
  45.     const LibCCopyLength    length
  46. ));
  47.  
  48. /*
  49.  * memchr --
  50.  *    memory(3)
  51.  */
  52. extern
  53. char *
  54. memchr ARGS((
  55.     const String        buffer,
  56.     const char        stopCharacter,
  57.     const LibCCopyLength    length
  58. ));
  59.  
  60. /*
  61.  * memchr --
  62.  *    memory(3)
  63.  */
  64. extern
  65. int
  66. memcmp ARGS((
  67.     const String        buffer1,
  68.     const String        buffer2,
  69.     const LibCCopyLength    length
  70. ));
  71.  
  72. /*
  73.  * memcpy --
  74.  *    memory(3)
  75.  */
  76. extern
  77. char *
  78. memcpy ARGS((
  79.     const String        toBuffer,
  80.     const String        fromBuffer,
  81.     const LibCCopyLength    length
  82. ));
  83.  
  84. /*
  85.  * memset --
  86.  *    memory(3)
  87.  */
  88. extern
  89. char *
  90. memset ARGS((
  91.     const String        toBuffer,
  92.     const char        value,
  93.     const LibCCopyLength    length
  94. ));
  95.  
  96. /* ----------------
  97.  *    end of libc.h
  98.  * ----------------
  99.  */
  100.  
  101. typedef     CLibCopyLength;
  102.  
  103. /*
  104.  * MemoryCopy --
  105.  *    Copies fixed length block of memory to another.
  106.  */
  107. #define MemoryCopy(toBuffer, fromBuffer, length)\
  108.     memcpy(toBuffer, fromBuffer, length)
  109.  
  110. #endif
  111. #endif    /* !defined(CLibIncluded) */
  112.